package com.fatsatsuma.email;

import org.apache.commons.mail.EmailException;

public interface IEmail {

	/**
	 * Method returns the unique identifier for this email address
	 * 
	 * @return
	 */
	public int getId();

	/**
	 * This method sends the email via the specified host
	 * 
	 * @return
	 * @throws EmailException
	 */
	public boolean send() throws EmailException;

	/**
	 * Method sets the session for this email to be sent via i.e. could be a jndi
	 * session or a standard mail session
	 */
	public void setHostName(String hostName);

}
